package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMultiPlantProductionReportsMapper;
import com.ruoyi.system.domain.DispatchMultiPlantProductionReports;
import com.ruoyi.system.service.IDispatchMultiPlantProductionReportsService;

/**
 * 多水厂生产报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMultiPlantProductionReportsServiceImpl implements IDispatchMultiPlantProductionReportsService 
{
    @Autowired
    private DispatchMultiPlantProductionReportsMapper dispatchMultiPlantProductionReportsMapper;

    /**
     * 查询多水厂生产报
     * 
     * @param multiPlantProductionReportsId 多水厂生产报主键
     * @return 多水厂生产报
     */
    @Override
    public DispatchMultiPlantProductionReports selectDispatchMultiPlantProductionReportsByMultiPlantProductionReportsId(Long multiPlantProductionReportsId)
    {
        return dispatchMultiPlantProductionReportsMapper.selectDispatchMultiPlantProductionReportsByMultiPlantProductionReportsId(multiPlantProductionReportsId);
    }

    /**
     * 查询多水厂生产报列表
     * 
     * @param dispatchMultiPlantProductionReports 多水厂生产报
     * @return 多水厂生产报
     */
    @Override
    public List<DispatchMultiPlantProductionReports> selectDispatchMultiPlantProductionReportsList(DispatchMultiPlantProductionReports dispatchMultiPlantProductionReports)
    {
        return dispatchMultiPlantProductionReportsMapper.selectDispatchMultiPlantProductionReportsList(dispatchMultiPlantProductionReports);
    }

    /**
     * 新增多水厂生产报
     * 
     * @param dispatchMultiPlantProductionReports 多水厂生产报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMultiPlantProductionReports(DispatchMultiPlantProductionReports dispatchMultiPlantProductionReports)
    {
        return dispatchMultiPlantProductionReportsMapper.insertDispatchMultiPlantProductionReports(dispatchMultiPlantProductionReports);
    }

    /**
     * 修改多水厂生产报
     * 
     * @param dispatchMultiPlantProductionReports 多水厂生产报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMultiPlantProductionReports(DispatchMultiPlantProductionReports dispatchMultiPlantProductionReports)
    {
        return dispatchMultiPlantProductionReportsMapper.updateDispatchMultiPlantProductionReports(dispatchMultiPlantProductionReports);
    }

    /**
     * 批量删除多水厂生产报
     * 
     * @param multiPlantProductionReportsIds 需要删除的多水厂生产报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMultiPlantProductionReportsByMultiPlantProductionReportsIds(Long[] multiPlantProductionReportsIds)
    {
        return dispatchMultiPlantProductionReportsMapper.deleteDispatchMultiPlantProductionReportsByMultiPlantProductionReportsIds(multiPlantProductionReportsIds);
    }

    /**
     * 删除多水厂生产报信息
     * 
     * @param multiPlantProductionReportsId 多水厂生产报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMultiPlantProductionReportsByMultiPlantProductionReportsId(Long multiPlantProductionReportsId)
    {
        return dispatchMultiPlantProductionReportsMapper.deleteDispatchMultiPlantProductionReportsByMultiPlantProductionReportsId(multiPlantProductionReportsId);
    }
}
